-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(SelectableTile): sync selected prop and state #8279
fix(SelectableTile): sync selected prop and state #8279
Conversation
DCO Assistant Lite bot All contributors have signed the DCO. |
Deploy preview for carbon-elements failed. Built with commit df08693 https://app.netlify.com/sites/carbon-elements/deploys/607482304635de0aeff577aa |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit df08693 https://deploy-preview-8279--carbon-components-react.netlify.app |
944e37e
to
11bd374
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing and temp stories look good 👍
727b379
to
479fb55
Compare
Closes #7759
This PR keeps the selectable tile's selected state in sync to prevent unexpected selection behavior
Changelog
Changed
handleClick
andhandleKeyDown
props in favor of standardonClick
andonKeyDown
propsselected
prop when providedTesting / Reviewing
ensure the existing tile use cases work as expected together with the added temp example